package com.accp.biz.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.accp.biz.CarsBiz;
import com.accp.dao.CarsDao;
import com.accp.entity.CarBrand;
import com.accp.entity.Cars;
import com.accp.entity.Carsapplication;
@Service
public class CarsBizImpl implements CarsBiz {

	@Resource
	private CarsDao carsDao;
	
	@Override
	public List<Cars> queryCars() {
		return carsDao.queryCars();
	}

	@Override
	public boolean addCar(Cars c) {
		return carsDao.addCar(c)>0;
	}

	@Override
	public boolean updateCar(Cars c) {
		return carsDao.updateCar(c)>0;
	}

	@Override
	public boolean delCar(int cid) {
		return carsDao.delCar(cid)>0;
	}

	@Override
	public boolean addCarApply(Carsapplication cap) {
		return carsDao.addCarApply(cap)>0;
	}

	@Override
	public Cars queryCar(int cid) {
		return carsDao.queryCars(cid);
	}

	@Override
	public List<CarBrand> queryBrand() {
		return carsDao.queryBrand();
	}

}
